home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / daymisckit_proj / Headers / daymisckit / DAYStopwatch.h < prev    next >
Text File  |  1995-06-12  |  740b  |  36 lines

  1. //
  2. //    DAYStopwatch.h -- a generic class to time things (measure)
  3. //        Written by Don Yacktman (c) 1993 by Don Yacktman.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This is a free object!  Contact the author for the latest version.
  7. //        Don Yacktman, 4279 N. Ivy Lane, Provo, UT, 84604
  8. //        e-mail:  Don_Yacktman@byu.edu
  9. //
  10. //    See DAYStopWatch.m for details of the software license.
  11. //
  12.  
  13. #import <daymisckit/DAYTime.h>
  14. #import <sys/time.h>
  15.  
  16. @interface DAYStopwatch:DAYTime
  17. {
  18.     BOOL paused;
  19.     struct timeval startTime;
  20. }
  21.  
  22. - init;
  23.  
  24. - setRelative:(BOOL)t;
  25.  
  26. - clearTiming:sender;
  27. - startTiming:sender;
  28. - continueTiming:sender;
  29. - pauseTiming:sender;
  30. - calcElapsedTime:sender;
  31.  
  32. - read:(NXTypedStream *)stream;
  33. - write:(NXTypedStream *)stream;
  34.  
  35. @end
  36.